import request from '@/utils/request'

// 获取省
export function getProvince() {
  return request({
    url: '/fxfz/sArea/jsonSAreaTree?divisionId=1',
    method: 'get',
  })
}

// 获取区县
export function getChildArea(divisionId) {
  return request({
    url: '/fxfz/sArea/getChildAreaById?divisionId=' + divisionId,
    method: 'get'
  })
}

// 根据id获取code
export function getDivisionCode(divisionId) {
  return request({
    url: '/fxfz/sArea/getDivisionCodeById?divisionId=' + divisionId,
    method: 'get'
  })
}

